home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_1199 / 1152 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.8 KB

  1. Date: Sun, 6 Mar 1994 04:37:17 -0500
  2. From: "Nicholas S Castellano" <entropy@terminator.rs.itd.umich.edu>
  3. To: miff@asharak.apana.org.au
  4. In-Reply-To: michael smith's message of Sat, 05 Mar 94 02:03:50+1030 <Up-ECFDAAUQ@asharak.apana.org.au>
  5. Subject: another 1.10 job control bug?
  6.  
  7. >From: miff@asharak.apana.org.au (michael smith)
  8. >In <199403042253.RAA07033@terminator.rs.itd.umich.edu> you wrote :
  9. >>My only problem with it as a permanent solution is that a process
  10. >>hanging around in the foregroung process group could prevent the
  11. >>controlling tty from ever being released, causing the
  12. >>you-only-get-one-login-per-device problem again.  One way this could
  13. >>happen is if an asynchronous process is spawned from a
  14. >>non-job-control-aware shell (e.g. one that knows nothing about process
  15. >>groups).  I guess this isn't a big enough problem to be concerned
  16. >>about at the moment, unless there are other ways this could happen.
  17. >
  18. >Hmm, and it shouldn't be a problem anyway - when DCD drops/the TCP link is
  19. >closed/or any other 'true' logout action occurs, init should terminate 
  20. >all processes that claim to have that line as a controlling tty.
  21.  
  22. I don't think init has enough information to do this.  Under MiNT this
  23. should be under the kernel's control.  And even if the kernel did
  24. handle this, it would only apply if the CLOCAL bit were not set in the
  25. tty flags, and would only have the desired effect if the process
  26. doesn't ignore SIGHUP (for instance, users should be able to start a
  27. daemon interactively from the modem1 tty using a non-job-control aware
  28. shell, then log out, and expect the port not to get locked up.)
  29.  
  30. Cheers,
  31. entropy
  32.  
  33. --
  34. entropy -- it's not just a good idea, it's the second law.
  35. Personal mail:      entropy@gnu.ai.mit.edu
  36. MiNT library mail:  entropy@terminator.rs.itd.umich.edu
  37. "what do you have against octal?" -jrb
  38.  
  39.